package com.kangye.learnstudent.mapper;

import com.kangye.learnstudent.entity.StudentPaper;
import com.kangye.learnstudent.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

/**
 * @program: learndeduo
 * @description: 学生试卷接口
 * @author: stl
 * @create: 2021-05-17 09:29
 **/
@Repository
public interface StudentPaperMapper {
    //根据年级和科目查询各科和各年级的试卷
    List<StudentPaper> selStudentTest(Integer spGradeId, Integer spSubjectId);
    //提交做完的考试卷子
    Integer addeStudentTestPaperpage(StudentPaper studentPaper);
    //根据用户ID查看该学生做的卷子的记录
    List<StudentPaper> selStudentTestrecords(Integer spUserId);
}